package com.ruoyi.eduManage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生积分变更记录对象 edu_student_points_log
 */
public class EduStudentPointsLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long logId;

    /** 学生ID */
    @Excel(name = "学生ID")
    private Long studentId;

    /** 学生姓名 */
    @Excel(name = "学生姓名")
    private String studentName;

    /** 变更前积分 */
    @Excel(name = "变更前积分")
    private Integer beforePoints;

    /** 变更值（正加负减） */
    @Excel(name = "变更值")
    private Integer changeAmount;

    /** 变更后积分 */
    @Excel(name = "变更后积分")
    private Integer afterPoints;

    /** 变更原因 */
    @Excel(name = "变更原因")
    private String reason;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    public Long getLogId() { return logId; }
    public void setLogId(Long logId) { this.logId = logId; }

    public Long getStudentId() { return studentId; }
    public void setStudentId(Long studentId) { this.studentId = studentId; }

    public String getStudentName() { return studentName; }
    public void setStudentName(String studentName) { this.studentName = studentName; }

    public Integer getBeforePoints() { return beforePoints; }
    public void setBeforePoints(Integer beforePoints) { this.beforePoints = beforePoints; }

    public Integer getChangeAmount() { return changeAmount; }
    public void setChangeAmount(Integer changeAmount) { this.changeAmount = changeAmount; }

    public Integer getAfterPoints() { return afterPoints; }
    public void setAfterPoints(Integer afterPoints) { this.afterPoints = afterPoints; }

    public String getReason() { return reason; }
    public void setReason(String reason) { this.reason = reason; }

    public String getOperator() { return operator; }
    public void setOperator(String operator) { this.operator = operator; }

    @Override
    public Date getCreateTime() { return createTime; }
    @Override
    public void setCreateTime(Date createTime) { this.createTime = createTime; }

    @Override
    public String getRemark() { return remark; }
    @Override
    public void setRemark(String remark) { this.remark = remark; }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("logId", getLogId())
            .append("studentId", getStudentId())
            .append("studentName", getStudentName())
            .append("beforePoints", getBeforePoints())
            .append("changeAmount", getChangeAmount())
            .append("afterPoints", getAfterPoints())
            .append("reason", getReason())
            .append("operator", getOperator())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .toString();
    }
}